package com.ssh.dao.impl;


import org.springframework.orm.hibernate5.support.HibernateDaoSupport;

import com.ssh.bean.User;
import com.ssh.dao.UserDao;

public class UserDaoImpl  extends HibernateDaoSupport  implements UserDao{

	public User getUserById(int userId) {
		return  getHibernateTemplate().get(User.class, userId);
		
	}

	public void saveUser(User user) {
		getHibernateTemplate().save(user);
	}

}
